projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8157ea
)
(check_windows_init_file): Fix allocation of error buffer.
author
Kim F. Storm
<storm@cua.dk>
Mon, 12 Sep 2005 10:27:02 +0000
(10:27 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Mon, 12 Sep 2005 10:27:02 +0000
(10:27 +0000)
src/w32.c
patch
|
blob
|
history
diff --git
a/src/w32.c
b/src/w32.c
index c7f6e3172f91b416a278f7b27234e51241a95237..9a51233527d46564798601c5aeb29e63bcd01fa9 100644
(file)
--- a/
src/w32.c
+++ b/
src/w32.c
@@
-3894,7
+3894,9
@@
check_windows_init_file ()
Lisp_Object load_path_print = Fprin1_to_string (full_load_path, Qnil);
char *init_file_name = SDATA (init_file);
char *load_path = SDATA (load_path_print);
- char *buffer = alloca (1024);
+ char *buffer = alloca (1024
+ + strlen (init_file_name)
+ + strlen (load_path));
sprintf (buffer,
"The Emacs Windows initialization file \"%s.el\" "